<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" href="$meet/static/bootstrap2.3.2/css/bootstrap.min.css">  
 <!-- <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">   -->
 <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<!--  <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script> -->
<script src="$meet/static/bootstrap2.3.2/js/bootstrap.min.js"></script>
<script src="$meet/static/bootstrap2.3.2/js/jquery-1.9.1.min.js"></script>
<script src="$meet/static/admin/js/admin.js"></script>

<title>用户管理</title>
</head>
<style type="text/css">
thead>tr, tbody>tr {  
                background: #c9e6f6;  
                color: #000;  
            }  
</style>
<body>
<nav class="breadcrumb">首页 <span class="c-gray en">&gt;</span> 用户管理 <span class="c-gray en">&gt;</span> 用户信息 </nav>
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray mt-20"> 
    <span class="l"><a  class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal"> 添加用户</a></span> 
    <!-- 模态框（Modal）开始 -->
                            <div class="modal  fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
                                <div class="modal-dialog modal-sm" id="myModaldialog">
                                    <div class="modal-content">
                                        <div class="modal-header" >
                                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                                &times;
                                            </button> 
                                            <h4 class="modal-title" id="myModalLabel">
                                               用户信息：
                                            </h4>
                                        </div>
                                        <div class="modal-body" >
                                         <form method="post" action="$meet/admin/index/insert">  
                                                         <span>账号：</span><input type="text" required="required" placeholder="账号" name="number" value="" />  <br />
                                                         <span>密码：</span><input type="text" required="required" placeholder="密码" name="password" value="" /><br />
                                                          <span>姓名：</span><input type="text" required="required" placeholder="姓名" name="name" value="" /><br />
                                                         <span>备注：</span><input type="text"  placeholder="备注" name="remarks" value="" /><br/>
                                                         <button class="but" type="submit">提交</button>  
                                                             </form>
                                        </div>
                                        <div class="modal-footer">
                                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>  
                                        </div>
                                    </div><!-- /.modal-content -->
                                </div><!-- /.modal -->
                            </div>
             <!--结束-->
    <span class="r">共有数据：<strong>{$count}</strong> 条</span> </div>
    <div class="mt-20">
        <table class="table table-hover" id="cusTable"  
       data-pagination="true"  
       data-show-refresh="true"  
       data-show-toggle="true"  
       data-showColumns="true">  
       <thead>  
          <tr>                                                       
              <th  data-field="Id" data-sortable="true" width="60" >  
                    id  
              </th>  
              <th data-field="Number" data-sortable="true" width="220" >  
                    账号  
              </th>  
              <th data-field="password" data-sortable="true" width="220">
                    密码
              </th>
              <th data-field="user" data-sortable="true" width="220">
                    姓名
              </th>
              <th data-field="chang" data-sortable="true" width="220">
                    是否修改    
              </th>
              <th data-field="chang" data-sortable="true" width="220">
                    是否删除    
              </th>

                  
          </tr>  
       </thead>  
       <tbody> 
           {volist name="list->data" id="vo"} 
           <tr>
           <td >{$vo.user_id}</td>
           <td >{$vo.Number}</td>
           <td >{$vo.password}</td>
           <td >{$vo.user}</td>
           <td ><a  data-toggle="modal" data-target="#{$vo.user_id}" id="change"><img src='$meet/static/picture/change.png'></a></td>
             <!-- 模态框（Modal）开始 -->
                            <div class="modal  fade" id="{$vo.user_id}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
                                <div class="modal-dialog modal-sm" id="myModaldialog">
                                    <div class="modal-content">
                                        <div class="modal-header" >
                                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                                &times;
                                            </button> 
                                            <h4 class="modal-title" id="myModalLabel">
                                               用户信息：
                                            </h4>
                                        </div>
                                        <div class="modal-body" >
                                         <form method="post" action="$meet/admin/index/update?id={$vo.user_id}">  
                                         <span>账号：</span><input type="text" required="required" placeholder="账号" name="number" value="{$vo.Number}" />  <br />
                                         <span>密码：</span><input type="text" required="required" placeholder="密码" name="password" value="{$vo.password}" /><br />
                                          <span>姓名：</span><input type="text" required="required" placeholder="姓名" name="name" value="{$vo.user}" /><br />
                                         <button class="but" type="submit">提交</button>  
                                        </form>
                                        </div>
                                        <div class="modal-footer">
                                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>  
                                        </div>
                                    </div><!-- /.modal-content -->
                                </div><!-- /.modal -->
                            </div>
             <!--结束-->

           <td ><a href="$meet/admin/index/delete?id={$vo.user_id}"><img src='$meet/static/picture/delete.png'></a></td>
          
           </tr>
           {/volist}            
       </tbody> 
</table>  
</div>
<div style="float: right;">{$list->render}</div>
</div>
</body>

</html>